<template>
	<view class="box">
		<!-- 选择会员 -->
		<view class="selectMember">
			<view class="member"  @click="id ? dialog = false : dialog = true">
				<image src="../../../static/img/quickly/information/add@2x.png"></image>
				<text>{{userName || '选择会员'}}</text>
			</view>
			<view class="save" @click="submit(1)">保存</view>
			<view class="toSend" @click="submit(2)">签名发送</view>
		</view>
		
		<view class="mainContent">
			<!-- 问题目录 -->
			<view class="problemDirectory" v-for="(item,index) in checkArr" :key="index">
				<view class="quesitonDirectory">
					<view class="title">{{item.title}}</view>
					<view class="check">{{item.check}}</view>
				</view>
				<view class="details">
					<view class="describe" v-if="index != 4" >
						<view class="itemBox" v-for="(identifying,aindex) in item.data" :key="aindex">
							<view class="item">
								<label>{{(aindex+1)+'、'}}</label>
								<input type="text" :placeholder="'问题'+(aindex+1)" v-model="identifying[item.name]"/>				
							</view>
							<image src="../../../static/img/quickly/follow/closeFollow.png" mode="widthFix" @click="del(index,aindex)"></image>
						</view>	
					</view>
					<view class="describe"  v-if="index == 4">
						<view class="navBox" v-for="(identifying,aindex) in item.data" :key="aindex">
							<view class="nav">
								<label>{{(aindex+1)+'、'}}</label>
								<view class="navSmall">
									<view class="problem"><input type="text" :placeholder="'问题'+(aindex+1)" v-model="identifying[item.name]"/></view>
									<view  class="answer"><editor :id="'healthRiskFactors'+aindex" class="uni-input commentInput ql-container2" :placeholder="'建议：'+(aindex+1)"  @input="editorInput2(identifying)"  v-model="identifying.value"  @focus="editIndex = aindex,editData = item.data" @ready="onEditorReady"></editor></view>
								</view>
							</view>
							<image src="../../../static/img/quickly/follow/closeFollow.png" mode="widthFix" @click="del(index,aindex)"></image>
						</view>	
					</view>
					<view class="addmore" @click="add(index)">
						<image src="../../../static/img/quickly/follow/addFollow.png"></image>添加一条
					</view>
				</view>
			</view>
			
		</view>
		
		<!-- 会员弹框 -->
		<member :dialog.sync="dialog"  @hidedialog="hidedialog" @chooseUser="chooseUser"></member>
		<u-modal v-model="showModal" :content="showContent" :show-cancel-button="true" @confirm="sureconfirm"></u-modal>
	</view>
</template>

<script src="@/static/js/quickly/summary/createSummary"></script>

<style lang="scss" scoped>
	@import '@/static/css/quickly/summary/createSummary.scss';
</style>
